home *** CD-ROM | disk | FTP | other *** search
- .key ""
- .bra {
- .ket }
-
- failat 11
-
- if $Language EQ "deutsch"
- skip German
- endif
-
- GCompare ? >nil: ;is GCompare in the search path?
- if warn
- echo "Please copy GCompare in your search path or*Nthe directory of this compare script first."
- wait 5
- endcli
- endif
-
- Version >NIL:
- if NOT $Workbench GE "39."
- echo "*NThis script needs OS 3.0 or better.*N"
- endcli
- endif
-
- echo "*NCreating patchfile:*N"
-
- echo "Old file: " noline
- requestfile >ENV:gcold{$$} title "Select old file"
- if warn
- echo "*N*NBreak."
- endcli
- endif
- echo $gcold{$$}
-
- echo "New file: " noline
- requestfile >ENV:gcnew{$$} title "Select new file"
- if warn
- echo "*N*NBreak."
- endcli
- endif
- echo $gcnew{$$}
-
- if NOT EXISTS ENV:lastpatchfile{$$}
- echo >ENV:lastpatchfile{$$} ""
- endif
-
- echo "Patch file:" noline
- requestfile >ENV:gcpatch{$$} $lastpatchfile{$$} noicons savemode title "Select patch file"
- if warn
- echo "*N*NBreak."
- endcli
- endif
- echo >ENV:lastpatchfile{$$} "file " noline
- type >>ENV:lastpatchfile{$$} ENV:gcpatch{$$}
- echo $gcpatch{$$}
-
- RequestChoice >ENV:gcmodeX{$$} "Select operating mode" "Which operating mode GCompare shall use?*n*n" "Mode 1" "Mode 2" "Mode 3" "Mode 4" "Automatic" "Cancel"
- if $gcmodeX{$$} EQ "0"
- echo "*NBreak."
- endcli
- endif
- if $gcmodeX{$$} NOT GT "4"
- echo >ENV:gcmode{$$} "mode " noline
- echo >>ENV:gcmode{$$} $gcmodeX{$$}
- endif
-
- if $gcmodeX{$$} EQ "5"
- echo >ENV:gcmode{$$} "auto "
- endif
-
- ;echo "*Ngcompare" $gcold{$$} $gcnew{$$} $gcpatch{$$} $gcmode{$$}
- echo ""
- changetaskpri -2
-
- gcompare $gcold{$$} $gcnew{$$} $gcpatch{$$} $gcmode{$$}
- endcli
-
- ;************
-
-
- LAB German
-
- GCompare ? >nil: ;is GCompare in the search path?
- if warn
- echo "Bitte kopieren Sie zuerst GCompare in den Suchpfad oder*Ndas Verzeichnis dieses Compare-Skripts."
- wait 5
- endcli
- endif
-
- Version >NIL:
- if NOT $Workbench GE "39."
- echo "*NDieses Skript läuft nur ab OS 3.0.*N"
- endcli
- endif
-
- echo "*NPatchdatei mit GCompare erzeugen:*N"
-
- echo "Alte Datei: " noline
- requestfile >ENV:gcold{$$} title "Alte Datei auswählen"
- if warn
- echo "*N*NAbbruch."
- endcli
- endif
- echo $gcold{$$}
-
- echo "Neue Datei: " noline
- requestfile >ENV:gcnew{$$} title "Neue Datei auswählen"
- if warn
- echo "*N*NAbbruch."
- endcli
- endif
- echo $gcnew{$$}
-
- if NOT EXISTS ENV:lastpatchfile{$$}
- echo >ENV:lastpatchfile{$$} ""
- endif
-
- echo "Patch-Datei:" noline
- requestfile >ENV:gcpatch{$$} $lastpatchfile{$$} noicons savemode title "Patch-Datei auswählen"
- if warn
- echo "*N*NAbbruch."
- endcli
- endif
- echo >ENV:lastpatchfile{$$} "file " noline
- type >>ENV:lastpatchfile{$$} ENV:gcpatch{$$}
- echo $gcpatch{$$}
-
- RequestChoice >ENV:gcmodeX{$$} "Betriebsart auswählen" "In welcher Betriebsart soll GCompare arbeiten?*n*n" "Mode 1" "Mode 2" "Mode 3" "Mode 4" "Automatik" "Abbruch"
- if $gcmodeX{$$} EQ "0"
- echo "*NAbbruch."
- endcli
- endif
- if $gcmodeX{$$} NOT GT "4"
- echo >ENV:gcmode{$$} "mode " noline
- echo >>ENV:gcmode{$$} $gcmodeX{$$}
- endif
-
- if $gcmodeX{$$} EQ "6"
- echo >ENV:gcmode{$$} "auto "
- endif
-
- ;echo "*Ngcompare" $gcold{$$} $gcnew{$$} $gcpatch{$$} $gcmode{$$} "*N"
- echo ""
- changetaskpri -2
-
- gcompare $gcold{$$} $gcnew{$$} $gcpatch{$$} $gcmode{$$}
-
-